<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
--%>
<% 
RequestDispatcher dispatcher = null;
if(session.getAttribute("customer")==null){
    out.print("test");
    dispatcher = request.getRequestDispatcher("login.jsp");
    dispatcher.forward(request, response);
}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Welcome to MyStuff  |  Home</title>
        <link href="mystuff_text.css" rel="stylesheet" type="text/css">
        <link href="mystuff_layout.css" rel="stylesheet" type="text/css">
    <style type="text/css">
<!--
body {
	background-image: url(Images/background_grad_big.gif);
	background-repeat: repeat-x;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
    <script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
    </script>
    </head>
    <body onLoad="MM_preloadImages('Images/buy_stuff_on.gif','Images/film_on.jpg','Images/camera_on.jpg','Images/rent_stuff_on.gif','Images/print_stuff_on.gif','Images/pictures_on.jpg','Images/backup_stuff_on.gif','Images/hard_disk_on.jpg')">
        <div id="main_container">
			<div id="big_top_bar">
				<div id="big_logo">
				<img src="Images/large_logo.gif" alt="MyStuff |  Digital Life My Way" id="Image1"><br>
				<div class="big_logo_shadow"><img src="Images/biglogoshadow.jpg" id="Image2"></div>
			  </div> 
				<!-- /big_logo -->
			</div> <!-- /big_top_bar -->
			<div id="home_navigation">
				<div id="home_navigation_buy_element">
					<div><a href="javascript:document.buyForm.submit('Purchase Inventory')" onMouseOver="MM_swapImage('buy_text','','Images/buy_stuff_on.gif','buy_pic','','Images/film_on.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/buy_stuff_off.gif" border="0" name="buy_text" id="buy_text"></a></div>
					<div><a href="javascript:document.buyForm.submit('Purchase Inventory')" onMouseOver="MM_swapImage('buy_text','','Images/buy_stuff_on.gif','buy_pic','','Images/film_on.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/film_off.jpg" name="buy_pic" id="buy_pic" border="0"></a></div>
				</div>
				<div id="home_navigation_rent_element">
					<div><a href="javascript:document.rentForm.submit('Rent Items')" onMouseOver="MM_swapImage('rent_text','','Images/rent_stuff_on.gif','rent_pic','','Images/camera_on.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/rent_stuff_off.gif" name="rent_text" id="rent_text" border="0"></a></div>
					<div><a href="javascript:document.rentForm.submit('Rent Items')" onMouseOver="MM_swapImage('rent_text','','Images/rent_stuff_on.gif','rent_pic','','Images/camera_on.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/camera_off.jpg" name="rent_pic" id="rent_pic" border="0"></a></div>
				</div>
				<div id="home_navigation_print_element">
					<div class="element"><a href="javascript:document.printForm.submit('Print Pictures')" onMouseOver="MM_swapImage('print_text','','Images/print_stuff_on.gif','print_pic','','Images/pictures_on.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/print_stuff_off.gif" name="print_text" id="print_text" border="0"></a></div>
					<div class="element"><a href="javascript:document.printForm.submit('Print Pictures')" onMouseOver="MM_swapImage('print_text','','Images/print_stuff_on.gif','print_pic','','Images/pictures_on.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/pictures_off.jpg" name="print_pic" id="print_pic" border="0"></a></div>					
				</div>
				<div id="home_navigation_backup_element">
					<div class="element"><a href="javascript:document.backupForm.submit('Purchase Backups')" onMouseOver="MM_swapImage('backup_txt','','Images/backup_stuff_on.gif','backup_pic','','Images/hard_disk_on.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/backup_stuff_off.gif" name="backup_txt" id="backup_txt" border="0"></a></div>
					<div class="element"><a href="javascript:document.backupForm.submit('Purchase Backups')" onMouseOver="MM_swapImage('backup_txt','','Images/backup_stuff_on.gif','backup_pic','','Images/hard_disk_on.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="Images/hard_disk_off.jpg" name="backup_pic" id="backup_pic" border="0"></a></div>
				</div>
			</div>
		</div>
        <div class="hidden_forms">
        <form name="buyForm" action="edu.byu.isys413.actions.BuyStuff.action" method="POST"></form>
        <form name="backupForm"action="edu.byu.isys413.actions.ViewBackup.action" method="POST"></form>
        <form name="rentForm" action="rentStuff.jsp"></form>
        <form name="printForm" action="printStuff.jsp"></form>
        </div>
    
</body>
</html>
